package com.ever.ssh.demo.service;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Service;

import com.ever.ssh.demo.dao.OrderDao;
import com.ever.ssh.demo.entity.Order;

/**
 * @author xiai_fei
 * 
 * @date  2012-9-4  下午10:13:31
 * @version 1.0
 */
@Service
public class OrderService {
	
	private static final Log log = LogFactory.getLog(OrderService.class);

	private OrderDao orderDao ;
	
	public void createOrder(String price ,String decs){
		log.info("依赖注入获取service实例");
		Order order = new Order();
		order.setPrice(price);
		order.setDetail(decs);
	}

	/**
	 * @param orderDao the orderDao to set
	 */
	public void setOrderDao(OrderDao orderDao) {
		this.orderDao = orderDao;
	}

	/**
	 * @return the orderDao
	 */
	public OrderDao getOrderDao() {
		return orderDao;
	}
}
